package com.woniu.entity;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Title
 * @Author 武术有栖
 * @Description:
 */
@Component
public class Constant {
/*
    @Value("${qiNiu.accessKey}")
*/
    private String accessKey;
/*
    @Value("${qiNiu.secretKey}")
*/
    private String secretKey;
/*
    @Value("${qiNiu.bucket}")
*/
    private String bucket;

    public static String ACCESSKEY;
    public static String SECRETKEY;
    public static String BUCKET;

    @PostConstruct
    public void init(){
        ACCESSKEY = accessKey;
        SECRETKEY = secretKey;
        BUCKET = bucket;
    }
}
